#ifndef __FILE_LOGGER_H__
#define __FILE_LOGGER_H__
#include "Logger_i.h"
#include "LogDefine.h"
#include <string>
using namespace std;

namespace NetComp
{
	class FileLogger : public ILogger
	{
	public:
		FileLogger();
		~FileLogger();	

	
		/*
		 *
		 * */
		virtual bool Log(const char* szMsg  ) ;
		/*  */
		virtual bool IsEnable() ;
		/*
		 * */
		virtual void SetEnable(bool bEnable) ;
		/*  */
		virtual const char* GetLogName() ;
	
		/* file name setter / getter */
		virtual void SetLoggerName(const char* szLoggerName) ;
		virtual const char* GetLoggerName() ;
//---------------------------------------
		void SetFileLogMode(FileLogMode eFLM);
		FileLogMode GetFileLogMode();

	private:
		bool				m_bEnable;
		FileLogMode			m_eFileLogMode;

		std::string			m_strLoggerName;
	};
}


#endif
